<div navbar ng-init="currentItem='service.tomcat'"></div>
<div ng-show="Auth.processing||!loaded"><div loading></div></div>

<div id="main" ng-show="!Auth.processing&&loaded" style="display:none" ng-init="checkInstalled()">
	<div class="module-header">
		<h3>Tomcat - 小型的轻量级 HTTP 服务器软件</h3>
	</div>

	<div srvinstall ng-init="name='Tomcat';pkg='tomcat';expected_repolist=['base', 'CentALT', 'epel'];"></div>

	<div class="tabbable" ng-show="installed">
		<ul class="nav nav-tabs">
			<li ng-class="'active' | iftrue:activeTabName=='base'"><a href="#base" ng-click="sec('base')" data-toggle="tab">基本信息</a></li>
			<li ng-class="'active' | iftrue:activeTabName=='setting'"><a href="#setting" ng-click="sec('setting')" data-toggle="tab">服务设置</a></li>
			<li ng-class="'active' | iftrue:activeTabName=='ext'"><a href="#ext" ng-click="sec('ext')" data-toggle="tab">扩展</a></li>
			<li ng-class="'active' | iftrue:activeTabName=='configfile'"><a href="#configfile" ng-click="sec('configfile')" data-toggle="tab">配置文件</a></li>
			<li ng-class="'active' | iftrue:activeTabName=='logfile'"><a href="#logfile" ng-click="sec('logfile')" data-toggle="tab">日志</a></li>
			<li ng-class="'active' | iftrue:activeTabName=='update'"><a href="#update" ng-click="sec('update')" data-toggle="tab">升级</a></li>
			<li ng-class="'active' | iftrue:activeTabName=='uninstall'"><a href="#uninstall" ng-click="sec('uninstall')" data-toggle="tab">卸载</a></li>
		</ul>
		<div class="tab-content">
			<div class="tab-pane" ng-class="'active' | iftrue:activeTabName=='base'" id="base">
				<div srvbase ng-init="name='Tomcat';pkg='tomcat';service='tomcat';"></div>
			</div>
			<div class="tab-pane" ng-class="'active' | iftrue:activeTabName=='setting'" id="setting">
				<div>
					Tomcat 设置
					<ul>
						https://blog.csdn.net/wos1002/article/details/53820570
						<li>监听的端口:80, Listen 80</li>
						<li>网络管理员的电子邮件地址, ServerAdmin root@localhost</li>
						<li>服务器主机名称,ServerName www.example.com:80</li>
						<li>服务器主目录,DocumentRoot "/var/www/html"</li>
						<li>默认文档，DirectoryIndex index.html index.html.var</li>
						<li>默认字符集,AddDefaultCharset UTF-8</li>
						<li>.htaccess文件</li>
						<li>SSL模块</li>
					</ul>
				</div>
			</div>
			<div class="tab-pane" ng-class="'active' | iftrue:activeTabName=='ext'" id="ext">
				<div srvext ng-init="name='Tomcat';pkg='tomcat';"></div>
			</div>
			<div class="tab-pane" ng-class="'active' | iftrue:activeTabName=='configfile'" id="configfile">
				<div srvfile ng-init="items=[
				{name:'主目录', path:'//usr/share/tomcat/conf', isdir:true},
				{name:'主配置', path:'//usr/share/tomcat/conf/tomcat.conf', isfile:true},
				{name: 'MIME类型', path:'/etc/tomcat/conf/magic', isfile: true},
				{name:'扩展配置', path:'/etc/tomcat/conf.d', isdir: true}];"></div>
			</div>
			<div class="tab-pane" ng-class="'active' | iftrue:activeTabName=='logfile'" id="logfile">
				<div srvlog ng-init="items=[{name:'日志目录', path:'/var/log/tomcat', isdir:true}];"></div>
			</div>
			<div class="tab-pane" ng-class="'active' | iftrue:activeTabName=='update'" id="update">
				<div srvupdate ng-init="name='Tomcat';pkg='tomcat';"></div>
			</div>
			<div class="tab-pane" ng-class="'active' | iftrue:activeTabName=='uninstall'" id="uninstall">
				<div srvuninstall ng-init="name='Tomcat';pkg='tomcat';"></div>
			</div>
		</div>
	</div>

</div>
